<template>
  <div class="header-btn">
    <a-button type="danger" @click="loginOut" style="margin-top: 18px">退出</a-button>
  </div>
</template>

<script>
export default {
  methods: {
    loginOut () {
      window.sessionStorage.clear('token')
      this.$router.push('/login')
    }
  }
}
</script>

<style scoped>
  .header-btn{
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
</style>
